package com.lxs.mall.model.dao;

import com.lxs.mall.model.pojo.OrderItem;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 小松
 */
@Repository
public interface OrderItemMapper {
    /**
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * @param row
     * @return
     */
    int insert(OrderItem row);

    /**
     * @param row
     * @return
     */
    int insertSelective(OrderItem row);

    /**
     * @param id
     * @return
     */
    OrderItem selectByPrimaryKey(Integer id);

    /**
     * @param row
     * @return
     */
    int updateByPrimaryKeySelective(OrderItem row);

    /**
     * @param row
     * @return
     */
    int updateByPrimaryKey(OrderItem row);

    /**
     * @param orderNo
     * @return
     */
    List<OrderItem> selectByOrderNo(String orderNo);
}